FROM openjdk:8-jdk-alpine

ADD device-info-update/target/device-info-update-0.0.2-SNAPSHOT.jar app.jar

ENV PROJECT_PATH /home/work/data-collection

COPY /. /tmp/target/

# install config
RUN mkdir -p $PROJECT_PATH && mv /tmp/target/* $PROJECT_PATH

WORKDIR $PROJECT_PATH

ENTRYPOINT ["java", "-jar", "/app.jar"]
